package me.firstapp.module.zerone.cqssc;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import me.firstapp.module.base.BaseEntity;

/**
 * 重庆时时彩计划模型
 * 
 * @author zerone
 *
 */
@Entity
@Table(name = "CQSSC_LOTTERY_PLAN")
public class CqsscPlan extends BaseEntity {

	private static final long serialVersionUID = 465339299916576969L;
	// 不计划状态
	public static final int CQSSC_PLAN_STATUS_NOT_PLAN = -1;
	// 未开奖状态
	public static final int CQSSC_PLAN_STATUS_NOT_OPEN = 0;
	// 未中奖状态
	public static final int CQSSC_PLAN_STATUS_NOT_WIN = 1;
	// 中奖状态
	public static final int CQSSC_PLAN_STATUS_WIN = 2;
	// 不推荐
	public static final int RECOMMEND = 0;
	// 推荐
	public static final int NOT_RECOMMEND = 1;

	// 计划期号
	@Column(name = "PLAN_ISSUE_NO", length = 12, nullable = false)
	private String planIssueNo;

	// 计划期號中的日期部分
	@Column(name = "PLAN_ISSUE_DATE", length = 8, nullable = false)
	private String planIssueDate;

	// 计划期號中的順序號
	@Column(name = "PLAN_ISSUE_SUB_NUM", nullable = false)
	private Integer planIssueSubNum;

	// 未出期数
	@Column(name = "NOT_WIN_NUM", nullable = false)
	private Integer notWinNum;

	// 计划号码
	@Column(name = "PLAN_NO", length = 10, nullable = false)
	private String planNo;

	// 开奖号码
	@Column(name = "OPEN_NO", length = 10)
	private String openNo;

	// 中奖号码
	@Column(name = "PRIZE_NO", length = 10)
	private String prizeNo;

	// 状态，-1不计划，0未开奖；1未中奖；2已中奖
	@Column(name = "STATUS", columnDefinition = "TINYINT DEFAULT 0", nullable = false)
	private Integer status;

	// 个位；十位；百位；千位；万位
	@Column(name = "WEI", length = 10, nullable = false)
	private String wei;

	// 倍投次数0,1,2,3,4,5,6,7,8
	@Column(name = "TIMES_NO", columnDefinition = "TINYINT DEFAULT 0", nullable = false)
	private Integer timesNo;

	// 倍投中奖期号,倍投次数为0时，期号为当前计划期号
	@Column(name = "TIMES_PRIZE_ISSUE_NO", length = 12)
	private String timesPrizeIssueNo;

	public String getPlanNo() {
		return planNo;
	}

	public void setPlanNo(String planNo) {
		this.planNo = planNo;
	}

	public String getPrizeNo() {
		return prizeNo;
	}

	public void setPrizeNo(String prizeNo) {
		this.prizeNo = prizeNo;
	}

	public String getWei() {
		return wei;
	}

	public void setWei(String wei) {
		this.wei = wei;
	}

	public String getPlanIssueNo() {
		return planIssueNo;
	}

	public void setPlanIssueNo(String planIssueNo) {
		this.planIssueNo = planIssueNo;
	}

	public String getPlanIssueDate() {
		return planIssueDate;
	}

	public void setPlanIssueDate(String planIssueDate) {
		this.planIssueDate = planIssueDate;
	}

	public Integer getPlanIssueSubNum() {
		return planIssueSubNum;
	}

	public void setPlanIssueSubNum(Integer planIssueSubNum) {
		this.planIssueSubNum = planIssueSubNum;
	}

	public Integer getNotWinNum() {
		return notWinNum;
	}

	public void setNotWinNum(Integer notWinNum) {
		this.notWinNum = notWinNum;
	}

	public Integer getTimesNo() {
		return timesNo;
	}

	public void setTimesNo(Integer timesNo) {
		this.timesNo = timesNo;
	}

	public String getTimesPrizeIssueNo() {
		return timesPrizeIssueNo;
	}

	public void setTimesPrizeIssueNo(String timesPrizeIssueNo) {
		this.timesPrizeIssueNo = timesPrizeIssueNo;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getOpenNo() {
		return openNo;
	}

	public void setOpenNo(String openNo) {
		this.openNo = openNo;
	}

}
